public class OfferBestN extends OMStrategy
model, negotiationSession| Constructor and Description |
|---|
OfferBestN()
Empty constructor used for reflexion.
|
OfferBestN(NegotiationSession negotiationSession,
OpponentModel model,
int n)
Normal constructor used to initialize the OfferBestN opponent model strategy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpdateOM()
Specifies that the opponent model may be updated when the current time
is smaller than the deadline.
|
BidDetails |
getBid(java.util.List<BidDetails> allBids)
First this method determines the N best bids given the array of
similarly preferred bids.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initializes the agent by storing the size of the domain, and checking
if the domain is large.
|
getBid, getBid, init, setOpponentModelpublic OfferBestN()
public OfferBestN(NegotiationSession negotiationSession, OpponentModel model, int n)
negotiationSession - symbolizing the negotiation state.model - opponent model strategy used by this opponent model strategy.n - amount of best bids from which a random bid is selected.public void init(NegotiationSession negotiationSession, OpponentModel model, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
init in class OMStrategynegotiationSession - state of the negotiation.model - opponent model used in conjunction with this opponent modeling strategy.parameters - set of parameters for this opponent model strategy.java.lang.Exception - thrown when initializing the opponent model strategy fails.public BidDetails getBid(java.util.List<BidDetails> allBids)
getBid in class OMStrategyallBids - list of similarly preferred bids.public boolean canUpdateOM()
canUpdateOM in class OMStrategy